package hotciv.variant;

import hotciv.exceptions.NoCityHereException;
import hotciv.framework.*;

public class EpsilonCivProductionAndWorkforceStrategy implements ProductionAndWorkforceStrategy {

	public void changeProductionInCityAt(GameTesting g, Position p, String unitType) {
		if(g.getCityAt(p) != null)
			throw new NoCityHereException("No City here!");
		((CityTesting)g.getCityAt(p)).setProduction(unitType);
	}

	public void changeWorkForceFocusInCityAt(GameTesting g, Position p, String balance) {
		if(g.getCityAt(p) != null)
			throw new NoCityHereException("No City here!");
		((CityTesting)g.getCityAt(p)).setWorkforceFocus(balance);
	}
}